﻿
<!--********************* Part1:Jsp Head *********************-->

<%@ page contentType="text/html;charset=UTF-8"%>  
<%@ include file="/framework/head.jsp"%>

<!--********************* Part2:Java Code *********************-->
<%
	ProviderPageData obj = (ProviderPageData)context.getValue("ProviderPageData");
%>

<!--********************* Part3:JavaScript Code ***************-->
<script language="javascript">

var g_check_items = new Array();
var g_i = 0 ;

g_check_items[g_i++] = new CheckItem("编码","Code",true,true,10,false,0);

g_check_items[g_i++] = new CheckItem("名称","Name",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("全称","FullName",true,true,100,false,0);

g_check_items[g_i++] = new CheckItem("英文名称","EngName",false,true,100,false,0);

g_check_items[g_i++] = new CheckItem("公司性质","ComProperty",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("经营地址","Address",false,true,100,false,0);

g_check_items[g_i++] = new CheckItem("邮政编码","ZipCode",false,true,20,false,0);

g_check_items[g_i++] = new CheckItem("负责人","ManagePerson",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("负责人联系电话","ManagerTel",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("联系人","LinkPerson",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("联系人电话","LinkTel",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("所属国家","CountryCode",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("所属省份","ProvinceCode",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("所属地区","DistrictCode",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("主营行业","Industry",false,true,500,false,0);

g_check_items[g_i++] = new CheckItem("主营产品","MainRpoduct",false,true,500,false,0);

g_check_items[g_i++] = new CheckItem("经营范围","Scope",false,true,2000,false,0);

g_check_items[g_i++] = new CheckItem("信誉等级","CreditLevel",false,true,50,false,0);

g_check_items[g_i++] = new CheckItem("是否交易平台的供应商","IsTradeflatProvider",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("是否有效","Status",true,true,1,false,0);

g_check_items[g_i++] = new CheckItem("创建人序号","CreateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("创建人","CreateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("创建时间","CreateTime",true,true,20,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人序号","LastUpdateUserId",true,true,32,false,0);

g_check_items[g_i++] = new CheckItem("最后修改人","LastUpdateUser",true,true,50,false,0);

g_check_items[g_i++] = new CheckItem("最后修改时间","LastUpdateTime",true,true,20,false,0);


function doSaveAndNew()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveAndNewProvider");
	frm.submit();
}
function doSave()
{
	if(!CheckInput(g_check_items)) return false;
	SetAction("saveProvider");
	frm.submit();
}
function doCancel()
{
	SetAction("backListProvider");
	frm.submit();
}

key_InitDefault();
key_RegSubmitHandler(doSaveAndNew);
</script>

<%=uiBody%>>

<%@ include file="/framework/menu.jsp"%>

<!--********************* Part4:Form  ***************-->

<form id=frm action="<%=Config.getSrv()%>" method="post">
<input type=hidden name="action_code">

<input type=hidden name="Id" value="<%=obj.getId()%>">


<br>

<%=UIManager.addEditHeadTitle("供应商维护")%>


<!--********************* Part5:Edit Area  ***************-->
<%=uiEditStart%>>
<%
	int key_tab = 1 ;
%>


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Code" size=20  value="<%=obj.viewCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>名称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Name" size=20  value="<%=obj.viewName(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>全称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="FullName" size=20  value="<%=obj.viewFullName(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>英文名称：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="EngName" size=20  value="<%=obj.viewEngName(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>公司性质：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ComProperty" size=20  value="<%=obj.viewComProperty(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>经营地址：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Address" size=20  value="<%=obj.viewAddress(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>邮政编码：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ZipCode" size=20  value="<%=obj.viewZipCode(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>负责人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ManagePerson" size=20  value="<%=obj.viewManagePerson(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>负责人联系电话：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ManagerTel" size=20  value="<%=obj.viewManagerTel(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>联系人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LinkPerson" size=20  value="<%=obj.viewLinkPerson(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>联系人电话：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LinkTel" size=20  value="<%=obj.viewLinkTel(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>所属国家：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CountryCode" size=20  value="<%=obj.viewCountryCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>所属省份：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="ProvinceCode" size=20  value="<%=obj.viewProvinceCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>所属地区：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="DistrictCode" size=20  value="<%=obj.viewDistrictCode(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>主营行业：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Industry" size=20  value="<%=obj.viewIndustry(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>主营产品：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="MainRpoduct" size=20  value="<%=obj.viewMainRpoduct(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>经营范围：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Scope" size=20  value="<%=obj.viewScope(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>信誉等级：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreditLevel" size=20  value="<%=obj.viewCreditLevel(con)%>" key_tab="<%=key_tab++%>">
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否交易平台的供应商：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="IsTradeflatProvider" size=20  value="<%=obj.viewIsTradeflatProvider(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>是否有效：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="Status" size=20  value="<%=obj.viewStatus(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUserId" size=20  value="<%=obj.viewCreateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateUser" size=20  value="<%=obj.viewCreateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>创建时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="CreateTime" size=20  value="<%=obj.viewCreateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人序号：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUserId" size=20  value="<%=obj.viewLastUpdateUserId(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改人：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateUser" size=20  value="<%=obj.viewLastUpdateUser(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	


	<%=uiEditTR%>>
		<%=uiEditHeadTD%> width=250>最后修改时间：</td>
		<%=uiEditTD%>>
			<input type=text class="texts"  name="LastUpdateTime" size=20  value="<%=obj.viewLastUpdateTime(con)%>" key_tab="<%=key_tab++%>"><font color=red>*</font>
		</td>
	</tr>
	

<%=uiEditEnd%>

<!--********************* Part6:Action Area  ***************-->
<%=uiCommandStart%>>
	<%=uiCommandTR%>>
   		<%=uiCommandTD%>>                     
			<input type=button class="buttons" value=" 保存&添加 " onclick="doSaveAndNew();return false;">
			<input type=button class="buttons" value="    保存   " onclick="doSave();return false;">
			<input type=button class="buttons" value="    返回   " onclick="doCancel();return false;">
		</td>
	</tr>
<%=uiCommandEnd%>
</form>

<%@ include file="/framework/foot.jsp"%>

<!--
	Author    :Wing
	FileName  :/system/base/ProviderEdit.jsp
-->
